package com.ticket.sass.admin.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ticket.sass.admin.mapper.SeatLockMapMapper;
import com.ticket.sass.admin.service.BaseService;
import com.ticket.sass.common.entity.tenant.SeatLockMapEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ywb
 * @since 2024-03-07
 */
@Service
public class SeatLockMapServiceImpl extends ServiceImpl<SeatLockMapMapper, SeatLockMapEntity> implements BaseService<SeatLockMapEntity> {
    public List<SeatLockMapEntity> getByLockId(Long lockId) {
        QueryWrapper<SeatLockMapEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("lock_id", lockId); // 根据数据库字段名替换成实际的字段名
        
        return baseMapper.selectList(queryWrapper);
    }
}
